﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ko" lang="ko">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<meta http-equiv="Content-Style-Type" content="text/css" />
		<meta http-equiv="Content-Script-Type" content="text/javascript" />
		<title>sample18</title>
		<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
		<script type="text/javascript">
$(function(){
	$(":button").click(function(){
		if($("input[name='mail']").val() != $("input[name='check']").val()){
			 $("em").text("메일 주소가 동일하지 않습니다.");
			return false;
		}
	});
});

		</script>
	</head>
	<body>
	<form action="check.html">
	<dl>
	<dt>메일주소</dt>
	<dd><input type="text" name="mail" /></dd>
	<dt>메일주소<em>(확인)</em></dt>
	<dd><input type="text" name="check" /></dd>
	<dd><button> 확인</button></dd>
	</dl>
	</form>

	</body>
</html>